-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: Docs examples #9190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Docs examples #9190
Conversation
|
Build successful! 🎉 |
|
Build successful! 🎉 |
| gridTemplateColumns: '25px 24px 24px 25px 24px', | ||
| gridTemplateRows: '25px 24px 24px 25px 24px' | ||
| gridTemplateColumns: 'calc(25px * var(--s2-scale)) calc(24px * var(--s2-scale)) calc(24px * var(--s2-scale)) calc(25px * var(--s2-scale)) calc(24px * var(--s2-scale))', | ||
| gridTemplateRows: 'calc(25px * var(--s2-scale)) calc(24px * var(--s2-scale)) calc(24px * var(--s2-scale)) calc(25px * var(--s2-scale)) calc(24px * var(--s2-scale))' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we use an array of numbers here and the style macro will do this automatically?
| gridTemplateRows: 'calc(25px * var(--s2-scale)) calc(24px * var(--s2-scale)) calc(24px * var(--s2-scale)) calc(25px * var(--s2-scale)) calc(24px * var(--s2-scale))' | |
| gridTemplateRows: [25, 24, 24, 25, 24] |
devongovett
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll follow up on my comment
Closes
Fixed locales not working, it involves including every locale though, which defeats the purpose of optimising, but it's the only way to make that one example work
Fixed size of placement control for popover in RAC docs, it takes up a lot of room in mobile though, do we want some sort of container query instead which turns it into a Select instead?
Fixed making DateField scroll, it already was "fixed" via width: content, but this seems more complete and useful.
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: